package com.fearless.crm.workbench.dao;

import com.fearless.crm.workbench.entity.Customer;

import java.util.List;
import java.util.Map;

public interface CustomerDao {

    Customer getCustomerByName(String company);

    int saveNerCustomer(Customer customer);

    List<String> getCustomerByNameAutoDao(String name);

    int getCustomerTotalDao();

    List<Customer> getCustomerListDao(Map map);

    int saveCustomerDao(Customer customer);

    Customer getCustomerById(String customerId);

    int updateCustomer(Customer customer);

    int deleteCustomer(String[] id);

    Customer getCustomerByIdDetail(String id);

    Customer queryCustomer(String customerName);

    int saveCustomerInAddContact(Customer customer);

    int updateCustomerInDetail(Customer customer);

    int deleteCustomerInDetail(String id);

    Customer queryCustomerById(String customerId);

    String queryOneCustomer(String customerId);
}
